package com.ruoyi.operator.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员收支记录对象 opt_member_order
 * 
 * @author pan
 * @date 2021-01-27
 */
public class OptMemberOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderId;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 会员卡号 */
    @Excel(name = "会员卡号")
    private String memberCardNumber;

    /** 会员昵称 */
    @Excel(name = "会员昵称")
    private String nikname;

    /** 增送金额 */
    @Excel(name = "增送金额")
    private BigDecimal givingAmount;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal consumeAmount;

    /** 账户余额 */
    @Excel(name = "账户余额")
    private BigDecimal balance;

    /** 类型,C代表充值,X代表消费,T退卡 */
    @Excel(name = "类型,C代表充值,X代表消费,T退卡")
    private String behalfType;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMemberCardNumber() {
        return memberCardNumber;
    }

    public void setMemberCardNumber(String memberCardNumber) {
        this.memberCardNumber = memberCardNumber;
    }

    public String getNikname() {
        return nikname;
    }

    public void setNikname(String nikname) {
        this.nikname = nikname;
    }

    public BigDecimal getGivingAmount() {
        return givingAmount;
    }

    public void setGivingAmount(BigDecimal givingAmount) {
        this.givingAmount = givingAmount;
    }

    public BigDecimal getConsumeAmount() {
        return consumeAmount;
    }

    public void setConsumeAmount(BigDecimal consumeAmount) {
        this.consumeAmount = consumeAmount;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getBehalfType() {
        return behalfType;
    }

    public void setBehalfType(String behalfType) {
        this.behalfType = behalfType;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("userName", getUserName())
            .append("mobile", getMobile())
            .append("memberCardNumber", getMemberCardNumber())
            .append("nikname", getNikname())
            .append("consumeAmount", getConsumeAmount())
            .append("givingAmount", getGivingAmount())
            .append("balance", getBalance())
            .append("behalfType", getBehalfType())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
